package game.views;

import hx.display.Box;

/**
 * 菜单按钮项
 */
@:build(hx.macro.UIBuilder.build("assets/views/MenuButtonItem.xml"))
class MenuButtonItem extends Box implements IMenuItem {
	public function setSelected(bool:Bool):Void {
		selected.visible = bool;
	}

	public function onNext():Void {}

	public function onPrev():Void {}

	dynamic public function onOk():Void {};

	public var title(default, set):String;

	private function set_title(value:String):String {
		this.title = value;
		this.titleLabel.data = value;
		return value;
	}
}
